from django.db import models

from home.utils.BaseModel import BaseModel


# Create your models here.
class User(BaseModel):
    username = models.CharField(max_length=50, default='')
    email = models.CharField(max_length=50, default='')
    password = models.CharField(max_length=50, default='')
    phone = models.CharField(max_length=50, default='')
    level = models.IntegerField(default=0)
    score = models.IntegerField(default=0)

    def __str__(self):
        return self.username

    class Meta:
        db_table = 'user'
